home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: MegaDisc
/
MegaDisc 36 (1993-11)(MegaDisc Digital Publishing)(AU)(Disk 2 of 2).zip
/
MegaDisc 36 (1993-11)(MegaDisc Digital Publishing)(AU)(Disk 2 of 2).adf
/
ARexx
/
Modular
/
MakeMenu.mod
< prev
next >
Wrap
Text File
|
1993-08-19
|
1KB
|
28 lines
/* Build a Menu */
MakeMenu:
a = 'Enter menu name'
menuname = Request(100,40,a,'','Okay','Cancel')
if menuname ~= '' then do
call AddMenu(HO,menuname || ' ')
a = 'Enter menu item names, with a comma between each'
b = 'First item,second item,etc'
itemlist = Request(50,40,a,b,'Okay','Cancel')
do while itemlist ~= ''
parse var itemlist item ',' itemlist
call AddItem(HO,item,'%l %m %i')
end
end
a = 'How about building, just for fun, a further menu\'||,
'containing an (inactive) list of the names of all\'||,
'the modules that are called by this program?'
ModList = Request(100,40,a,,'Okay','Cancel')
if ModList = 'OKAY' then do
if ~exists('lis') then address command 'list >lis #?.mod quick'
call AddMenu(HO,'Module List ')
op = open('ml','lis','r')
do n = 1 to 17
e = readln('ml') ; call AddItem(HO,e,'%l %m %i')
end
end
return